<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="blogfragments :: head(~{::title})">
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0" />
	<title>归档</title>
	<link rel="stylesheet" href="../static/css/semantic.min.css">
	<link rel="stylesheet" type="text/css" href="../static/css/manster.css"/>
</head>
<body>

<!-- 导航 -->
<nav th:replace="blogfragments :: menu(4)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small"></nav>

<!-- 中间内容 -->
<div class="m-container m-padded-tb m-opacity" id="center">
	<div class="ui container">
		<!-- 头部 -->
		<div class="ui top attached padded segment">
			<div class="ui middle aligned two column grid">
				<div class="column">
					<h3 class="ui violet header">归档</h3>
				</div>
				<div class="right aligned column">
					共 <h3 class="ui purple header m-inline-block" th:text="${blogCount}"></h3> 篇博客
				</div>
			</div>
		</div>

		<!-- 内容 -->
		<div class="ui " th:each="item : ${archives}">
			<h2 class="ui m-white center aligned header" th:text="${item.key}">2021</h2>
			<div class="ui fluid vertical menu">
				<a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item" th:each="blog : ${item.value}">
							<span>
								<i class="tiny teal circle icon"></i><span th:text="${blog.title}"></span>
								<div class="ui teal basic left pointing label m-padded-tb-tiny" th:text="${#temporals.format(blog.updateTime, 'MM-dd')}"></div>
							</span>
					<div class="ui orange mini tag label m-padded-tb-tiny" th:text="${blog.flag}"></div>
				</a>
			</div>
		</div>

	</div>
</div>

<!-- 底部 -->
<footer th:replace="blogfragments :: footer" class="ui inverted vertical segment m-padded-tb-large"></footer>

<!--/*/<th:block th:replace="blogfragments :: script">/*/-->
<script src="../static/js/jquery-3.3.1.js"></script>
<script src="../static/js/semantic.min.js"></script>
<!--/*/</th:block>/*/-->
<script type="text/javascript" color="240,248,255" opacity='0.8' zIndex="-1" count="99" src="../static/js/canvas-nest.js" th:src="@{/js/canvas-nest.js}"></script>
<script>
	$('.menu.toggle').click(function(){
		$('.m-item').toggleClass('m-mobile-hide');
	});
</script>
</body>
</html>

